package jzoffer;

/**
 * @author MaoLin Wang
 * @description
 * @date 2020/8/30 5:39 下午
 */
public class _14CuttingRope {
    public int cuttingRope(int n) {
       switch (n){
           case 1:
           case 2:
               return 1;
           case 3:
               return 3;
           case 4:
               return 4;
           case 5:
               return 6;
           default:
               return 3*cuttingRope(n-3);
       }
    }

    public static void main(String[] args) {

    }
}
